//package online.duanqing.authorization.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.http.SessionCreationPolicy;
//import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
//import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter;
//
///**
// * Created with hz
// *
// * @Author: DQ
// * @Date: 2024/01/17/23:24
// * @Description: 描述语句
// */
//@Configuration
//@EnableResourceServer
//public class C extends ResourceServerConfigurerAdapter {
//
//    @Override
//    public void configure(HttpSecurity http) throws Exception {
//        http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.IF_REQUIRED);
//
//        //需要认证
//        http.authorizeRequests()
//                .antMatchers("/postsInfo/upload/**","/postsInfo/add/**")
//                .authenticated();
//
//        //白名单
//        http.authorizeRequests()
//                .antMatchers("/test","/login","/oauth/authorize/**")
//                .permitAll()
//                .and()
//                .mvcMatcher("login.html");
//
//    }
//}
